import request from '@/utils/request'

// 查询采集数据列表
export function listCollected_data(query) {
  return request({
    url: '/business/collected_data/list',
    method: 'get',
    params: query
  })
}

// 查询采集数据详细
export function getCollected_data(cardId) {
  return request({
    url: '/business/collected_data/' + cardId,
    method: 'get'
  })
}

// 新增采集数据
export function addCollected_data(data) {
  return request({
    url: '/business/collected_data',
    method: 'post',
    data: data
  })
}

// 修改采集数据
export function updateCollected_data(data) {
  return request({
    url: '/business/collected_data',
    method: 'put',
    data: data
  })
}

// 删除采集数据
export function delCollected_data(cardId) {
  return request({
    url: '/business/collected_data/' + cardId,
    method: 'delete'
  })
}

// 导出采集数据
export function exportCollected_data(query) {
  return request({
    url: '/business/collected_data/export',
    method: 'get',
    params: query
  })
}